#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import pptbase_blueprint
from api_1_0.pptBaseResource.pptBaseResource import PptBaseResource
from api_1_0.pptBaseResource.pptBaseOtherResource import PptBaseOtherResource

api = Api(pptbase_blueprint)

api.add_resource(PptBaseResource, '/pptBase/<ppt_id>', '/pptBase', endpoint='PptBase')


@pptbase_blueprint.route('/download-ppt', methods=['GET'], endpoint='DownloaderPpt')
def download_ppt():
    return PptBaseOtherResource.download_ppt()


@pptbase_blueprint.route('/ppt-chat/list', methods=['GET'], endpoint='PptChatList')
def get_chat_list():
    return PptBaseOtherResource.get_chat_list()

